package watercups.operators;

import watercups.states.WaterCupState;
import templates.Operator;


public class Fill1 implements Operator<WaterCupState>{
	
	public int getOperatorNumber(){ 
		return 1;
	}

	public WaterCupState execute(WaterCupState s) {
		
		return new WaterCupState(3,s.getCapacity2());
	}

	public boolean available(WaterCupState s) {
		
		if (s.getCapacity1()<3)
			return true;
		else
			return false;
	}

	public String toString() {
		return "Filling first cup";
	}
	
}	